package com.lagou.niancheng.lagouservicecode.service;

import com.lagou.niancheng.lagou.service.common.CodeApi;
import com.lagou.niancheng.lagou.service.common.Result;
import com.lagou.niancheng.lagou.service.common.ResultBuilder;
import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;

/**
 * com.lagou.niancheng.lagouservicecode.service.CodeApiImpl
 *
 * @author 大犬
 * @date 2020/7/18
 */
@Service
public class CodeApiImpl implements CodeApi {
    @Resource
    private CodeService codeService;

    @Override
    public Result verifyCode(String email, String code) {
        return ResultBuilder.toSuccess(codeService.checkVerifyCode(email, code));
    }
}
